<style lang="less">
	@import "./uucPrivilege.less";
	@import "../../styles/common.less";
	@import "../../sprcore/common.less";
</style>
<template>
	<div>
		<Row classs="spr_table">
			<Input v-model="list_searchKey" placeholder="" style="width: 400px" />
			<Button type="ghost" icon="ios-search" style="background-color: white;" @click="list_search">搜索</Button>
			<Button type="primary" @click="form_create" v-show="p_uucPrivilege_create">新增权限管理</Button>
		</Row>
		<Row class="spr_table">
			<Table border :columns="columns" :data="list_datas" :stripe="true"></Table>
		</Row>
		<Row class="spr_page">
			<Page :total="list_totalCount" :page-size="list_pageSize" @on-change="list_changePage" show-sizer @on-page-size-change="list_changePageSize"></Page>
		</Row>

		<Modal :title="form_createOrUpdateModalTitle" v-model="form_createOrUpdateModal" :closable='true' :mask-closable=false :loading="form_createOrUpdateModalLoading" @on-ok="form_handlecreateOrUpdateItemForm" :width="800">
			<Form :model="form_createOrUpdateItemForm" ref="form_createOrUpdateItemForm" :label-width="120" :rules="form_createOrUpdateItemFormRuleValidate">
				<input type="hidden"  v-model="form_createOrUpdateItemForm.id">
				
				<FormItem label="权限代码" prop="privilegeCode">
					<Input type="text" v-model="form_createOrUpdateItemForm.privilegeCode" placeholder="请输入权限代码"></Input>				
				</FormItem>		
				<FormItem label="权限名称" prop="privilegeName">
					<Input type="text" v-model="form_createOrUpdateItemForm.privilegeName" placeholder="请输入权限名称"></Input>				
				</FormItem>		
				<FormItem label="备注" prop="memo">
					<Input v-model="form_createOrUpdateItemForm.memo" type="textarea" :autosize="{minRows: 2,maxRows: 5}" placeholder="Enter something..."></Input>				
				</FormItem>		
			</Form> 
		</Modal>
	</div>
</template>
<script>
 	import uucPrivilege from './uucPrivilege.js';
 	export default uucPrivilege;
</script>